import axios from 'axios'
import store from "../store"
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'

let api = store.state.RequestLink;
export default api

// 通过运单号获取订单号
export const getTheOrderNumber = '/kc-transport/tmsAppNew/verificationLabel' // 后端罗振坤
export const getTheOrderNumber1 = '/kc-transport/tmsApp/verificationLabel' // 后端胡飞

// 把保存的数据提交到服务器
export const addOrderList = '/kc-transport/tmsAppNew/commitScan'
export const addOrderList1 = '/kc-transport/tmsApp/commitScan' // 后端胡飞
export const commitTaskScan = '/kc-transport/tmsAppOp/commitTaskScan' // 后端罗振坤 扫描提交新接口
export const pickUpBranchScanCommit = '/kc-transport/tmsApp/pickUpBranchScanCommit' // 后端胡飞  支线扫描提交
export const pickUpBranchScanBatchCommit = '/kc-transport/tmsApp/pickUpBranchScanBatchCommit' // 后端王文飞  支线扫描批量提交

// 到付查询支付状态
export const paymentStatusQuery = '/kc-transport/tmsAppToPay/paymentStatusQuery' // 后端 谭淞珂
export const scanCodeQuery = '/kc-transport/tmsAppToPay/scanCode' // 后端 谭淞珂
export const forwardSF = '/kc-transport/tmsAppOp/forwardSF' // 后端 罗振坤
export const cmdpMonthCardPlay = '/kc-transport/tmsAppOp/cmdpMonthCardPlay' // 后端 罗振坤
export const checkOrderAllScan = '/kc-transport/tmsAppOp/checkOrderAllScan' // 后端 罗振坤

// 包-提交扫描  把保存的数据提交到服务器
export const commitScanContainer = '/kc-transport/tmsAppNew/commitScanContainer'

// 配载-提交扫描
export const commitShipScan = '/kc-transport/tmsAppNew/commitShipScan'
// #盲扫提交 后端罗振坤
export const commitStowageScan = '/kc-transport/tmsAppOp/commitStowageScan'

// 前置仓扫描  通过运单号查询订单号和运单列表
export const queryPaitiInfo = '/kc-transport/tmsApp/queryPaitiInfo'

export const getAviationOrderNumber = '/kc-transport/tmsApp/queryAviationOmsNoSelectInfo'


// // 新接口 航空出港扫描
export const aviationOutPortSubmitScan = '/kc-transport/tmsApp/aviationOutPortSubmitScan'
export const aviationOutPortBatchSubmitScan = '/kc-transport/tmsApp/aviationOutPortBatchSubmitScan'


export const abnormalUploadImage = `/kc-transport/tmsAppNew/taskUploadImage`
// 图片上传接口
export const independentUploadImage = '/kc-transport/commonFile/fileUpload'
// // # 批量提交 
export const commitTaskBatchScan = '/kc-transport/tmsAppOp/commitTaskBatchScan'
// // 消息列表
export const getMsgSendRecordQueryPage = '/notification/msgSendRecord/getMsgSendRecordQueryPage'
// // 已读
export const MarkAsRead = '/notification/msgSendRecord/MarkAsRead'